package routers

import (
	"project1/controller"

	"github.com/kataras/iris/v12/core/router"
)

// 通用接口
func InitCommRouter(apiRouter router.Party) {
	commController := controller.NewCommController()
	commRouter := apiRouter.Party("/comm/")

	commRouter.Post("PostUser", commController.PostUser) // post写入mysql用户表参数
}
